﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SEscortInfo extends IMessageBase
    {
        public var color:int;
        public var rewards:Array;
        public var todayNum:int;
        public var freeRefreshNum:int;
        public var leftGetTaskSeconds:int;
        public var todayTotalNum:int;
        public const _type:int = 19000;
        public static var _regist:SEscortInfo = new SEscortInfo(true);

        public function SEscortInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SEscortInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.color);
            SeqRewardHelper.write(param1, this.rewards);
            param1.writeInt(this.todayNum);
            param1.writeInt(this.freeRefreshNum);
            param1.writeInt(this.leftGetTaskSeconds);
            param1.writeInt(this.todayTotalNum);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.color = param1.readInt();
            this.rewards = SeqRewardHelper.read(param1);
            this.todayNum = param1.readInt();
            this.freeRefreshNum = param1.readInt();
            this.leftGetTaskSeconds = param1.readInt();
            this.todayTotalNum = param1.readInt();
            return;
        }// end function

    }
}
